package com.mybatis.mybatisdatab.mapper;

import com.mybatis.mybatisdatab.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//这个注解表示这是一个mybatis的mapper类:Dao
@Mapper
@Repository
public interface UserMapper {

    List<User> queryUserList();
    User queryUserById(int id);
    List<User> queryUserByName(String name);
    Integer addUser(User user);
    Integer updateUser(User user);
    Integer deleteUser(int id);
}
